package com.jec.module.sysmonitor.vo;

import java.io.Serializable;

import com.jec.module.sysmonitor.entity.view.TerminalDeviceView;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by jeremyliu on 5/10/16.
 */
public class Device implements Serializable {

    protected static final long serialVersionUID = -2264997227937470104L;

    public Device(){

    }

    public Device(TerminalDeviceView terminal){
        this.id = terminal.getId();
        this.name = terminal.getName();
        this.code = terminal.getCode();
        this.location = terminal.getLocation();
        this.category = terminal.getCategory();
//        this.slot = terminal.getSlotNumber();
    }

    @Setter @Getter
    private int id;

    @Setter @Getter
    private String name;

    @Setter @Getter
    private String code;
    
    @Setter @Getter
    private String location;
    
    @Setter @Getter
    private String category;

}
